{include file="public/meat" title="广告列表"/}
<div class="cx-fex-c">
    <div class="x11 pad-t15 pad-b10">
        <div class="cx-fex-c">
            <div class="layout">
                {if $btn.add}
                <a href="{:url('add',array('t'=>1))}" class="button bg-blue">添加图片广告</a>
                <a href="{:url('add',array('t'=>2))}" class="button bg-blue">添加幻灯片广告</a>
                <a href="{:url('add',array('t'=>3))}" class="button bg-blue">添加图文广告</a>
                <a href="{:url('add',array('t'=>4))}" class="button bg-blue">添加文字广告</a>
                {/if}
            </div>
        </div>
    </div>
    <div class="x11">
        <form class="layui-form" role="form" action="" method="post">
            <table class="cx-teble cx-teble-bor-w cx-teble-bor cx-table-striped cx-table-hover cx-table-responsive-w">
                <thead>
                <tr>
                    <th class="t-c">ID</th>
                    <th>广告名称</th>
                    <th class="t-c">广告类型</th>
                    <th class="t-c">状态</th>
                    {if $btn.edit || $btn.del}<th class="t-c">编辑</th>{/if}
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="cx" empty=""}
                <tr>
                    <td class="t-c">{$cx.id}</td>
                    <td>{$cx.title}</td>
                    <td class="t-c">{$cx.seetypezh}</td>
                    <td class="t-c">{$cx.statuszh}</td>
                    {if $btn.edit || $btn.del}
                    <td class="t-c">
                        {if $btn.edit}<a class="button button-S bg-green cx-click mr-5" href="{:url('edit',array('id'=>$cx.id))}">编辑</a>{/if}
                        {if $btn.del}<a class="button button-S bg-red cx-click" data-id="{$cx.id}" data-href="{:url('del')}" data-type="deldata">删除</a>{/if}
                    </td>
                    {/if}
                </tr>
                {/volist}
                </tbody>
            </table>
        </form>
    </div>
</div>
<div style="height: 20px; overflow: hidden"></div>
{include file="public/js" /}
<script>
    layui.config({
        base: '__ADMIN__/js/'
    }).use('app');
</script>
{include file="public/footer" /}